<?php

// +----------------------------------------------------------------------
// | 版权所有 2017-2027 云南环拓科技有限公司，并保留所有权利。
// +----------------------------------------------------------------------
// | Copyright (c) 2017-2027 http://www.yn123.com All rights reserved.
// +----------------------------------------------------------------------
// | Notice: This code is not open source, it is strictly prohibited
// |         to distribute the copy, otherwise it will pursue its
// |         legal responsibility.
// | 注意：  这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和使用,
// |        不允许对程序代码以任何形式任何目的的再发布。
// +----------------------------------------------------------------------
// | Author: feraner <feraner@163.com> 
// | Date: 2019/12/26
// +----------------------------------------------------------------------

namespace app\market\controller;

use library\Controller;
use think\facade\Request;

/**
 *
 * Class MarketConfig
 * @package app\market\controller
 * @author feraner<feraner@163.com>
 * @date 2019/12/26
 */
class MarketConfig extends Controller
{



    /**
     * 总平台二手发布配置
     * @auth true
     * @menu true
     */
    public function publishConfig()
    {
        $this->applyCsrfToken();
        if (Request::isGet()) {
            $this->title = '二手发布配置';
            $this->fetch();
        } else {
            foreach (Request::post() as $key => $value) {
                sysconf($key, $value);
            }
            $this->success('配置参数配置成功！');
        }
    }






}
